From ef6edef8f884e2fa7ef8027e9d323b1eadb33f83 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 23 Jun 2005 10:01:17 +0000 Subject: [PATCH] bitkeeper revision 1.1739 (42ba886dkLcSLF35FYJLZkKeANRJYg) Trivial cleanup in netfront driver. Signed-off-by: Keir Fraser --- linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c index 208b00353f..0ae6f7a40a 100644 --- a/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c @@ -1343,7 +1343,7 @@ static int xennet_proc_read( { struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL); struct net_private *np = netdev_priv(dev); - int len = 0, which_target = (unsigned long) data & 3; + int len = 0, which_target = (long)data & 3; switch (which_target) { @@ -1368,7 +1368,7 @@ static int xennet_proc_write( { struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL); struct net_private *np = netdev_priv(dev); - int which_target = (unsigned long) data & 3; + int which_target = (long)data & 3; char string[64]; long target; -- 2.30.2